package com.miyu.system.pojo.book;

import com.miyu.system.utils.jpacomment.annotation.ColumnComment;
import com.miyu.system.utils.jpacomment.annotation.TableComment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.persistence.*;
import lombok.Data;

import java.io.Serializable;

/**
 * 章节表;
 * @author : miyu
 * @date : 2024-11-23
 */
@ApiModel(value = "章节表",description = "")
@Data
@Entity
@Table(name="book_chapter")
@TableComment("章节表")
public class BookChapter implements Serializable,Cloneable{
    /** 主键 */
    @Id
    @TableGenerator(name="id_gen",  table="sys_id_generator", pkColumnName="table_name", pkColumnValue="book_chapter", valueColumnName="id_value", initialValue=1, allocationSize=1)
    @GeneratedValue(strategy=GenerationType.TABLE, generator="id_gen")
    @ApiModelProperty(value="主键",notes = "")
    @Column(name = "chapter_id", nullable = false,length=15 )
    @ColumnComment("主键")
    private Integer chapterId ;
    /** 书籍主键 */
    @ApiModelProperty(value="书籍主键",notes = "")
    @Column(name = "book_id", nullable = true,length=15 )
    @ColumnComment("书籍主键")
    private Integer bookId ;
    /** 章节地址 */
    @ApiModelProperty(value="章节地址",notes = "")
    @Column(name = "url", nullable = true,length=150 )
    @ColumnComment("章节地址")
    private String url ;
    /** 章节标题 */
    @ApiModelProperty(value="章节标题",notes = "")
    @Column(name = "title", nullable = true,length=100 )
    @ColumnComment("章节标题")
    private String title ;
    /** 章节序号 */
    @ApiModelProperty(value="章节序号",notes = "")
    @Column(name = "num", nullable = true,length=10 )
    @ColumnComment("章节序号")
    private Integer num ;
    /** 音频真实URL */
    @ApiModelProperty(value="音频真实URL",notes = "")
    @Column(name = "resource_url", nullable = true,length=150 )
    @ColumnComment("音频真实URL")
    private String resourceUrl ;
    /** 章节信息 */
    @ApiModelProperty(value="章节信息",notes = "")
    @Column(name = "tag", nullable = true,length=50 )
    @ColumnComment("章节信息")
    private String tag ;
    /** 章节起始位置 */
    @ApiModelProperty(value="章节起始位置",notes = "")
    @Column(name = "start", nullable = true,length=20 )
    @ColumnComment("章节起始位置")
    private String start ;
    /** 章节终止位置 */
    @ApiModelProperty(value="章节终止位置",notes = "")
    @Column(name = "end", nullable = true,length=20 )
    @ColumnComment("章节终止位置")
    private String end ;
    /** 变量 */
    @ApiModelProperty(value="变量",notes = "")
    @Column(name = "variable", nullable = true,length=30 )
    @ColumnComment("变量")
    private String variable ;
}